package eol;
import static org.junit.Assert.*;

import org.junit.Test;


public class Fib extends BasicTest {
    
    @Test
    public void testFib() {
        assertEquals( "closure" +newline+ "8.0" +newline,
        		go(
                "let fib := fun (n) " +newline+
                	"               if n=0 then 1 "+newline+
                "               else if n=1 then 1 "+newline+
                "               else (fib(n-1)+fib(n-2)) end if end if" +
                "           end fun ;"+newline +
                "fib(5) ;" ) ) ;
    }
 }
